<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>博客首页</title>
  <style>
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }
    body {
      font-family: 'Microsoft YaHei', sans-serif;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .home-container {
      background: white;
      padding: 50px;
      border-radius: 15px;
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
      text-align: center;
      max-width: 500px;
      width: 100%;
    }
    .welcome-message {
      color: #333;
      margin-bottom: 30px;
    }
    .welcome-message h1 {
      font-size: 2.5em;
      margin-bottom: 10px;
    }
    .username {
      color: #667eea;
      font-weight: bold;
    }
    .logout-link {
      display: inline-block;
      padding: 12px 30px;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      color: white;
      text-decoration: none;
      border-radius: 25px;
      transition: all 0.3s;
      font-size: 16px;
    }
    .logout-link:hover {
      transform: translateY(-2px);
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }
  </style>
</head>
<body>
<div class="home-container">
  <div class="welcome-message">
    <h1>欢迎回来！</h1>
    <p>亲爱的 <span class="username" th:text="${user.username}"></span>，欢迎访问博客管理系统</p>
  </div>
  <a th:href="@{/logout}" class="logout-link">退出登录</a>
</div>
</body>
</html>
